<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="../../css/public.css"/>
    <link rel="stylesheet" href="../../css/base.css">
    <link rel="stylesheet" type="text/css" href="../../css/nctouch_common.css">
    <link rel="stylesheet" href="../../css/fenxiao_detail.css">
    <title>推广费明细</title>
</head>
<body>
<header id="header" class="fixed">
    <div class="header-wrap">
        <div class="header-l">
            <a href="javascript:history.go(-1)">
                <i class="back"></i>
            </a>
        </div>
        <div class="header-title">
            <h1>收益明细</h1>
        </div>
    </div>
</header>
    <div class="main">
        <div class="list" id="log-list">
        </div>
    </div>
<div class="fix-block-r">
    <a href="javascript:void(0);" class="gotop-btn gotop hide" id="goTopBtn"><i></i></a>
</div>
<footer id="footer" class="bottom"></footer>
<script type="text/html" id="log-list-tmpl">
    <% var log_list = datas.log_list; %>
    <% if (log_list.length > 0){%>
    <% for(var i = 0;i<log_list.length;i++){
        var log = log_list[i]['data'];
        var time = log_list[i]['time'];
    %>
        <% if (log.length > 0) {%>
                <h5><%=time%></h5>
            <% for(var j = 0;j<log.length;j++){%>
                <div class="list_detail">
                    <% if (log[j]['order_sn'] != 0) {%>
                    <p class="p1">订单号：<%=log[j]['order_sn']%></p>
                    <%}%>
                    <p class="p2">变更说明: <span><%=log[j]['description']%></span> <strong>+<%=log[j]['money']%></strong></p>
                    <p class="p3">创建时间: <span><%= formattime(log[j]['addtime'])%></span></p>
                </div>
            <%}%>
        <%}else {%>
            <h5><%=time%></h5>
            <div class="list_detail">
                <p class="p1" style="text-align: center">暂无数据</p>
            </div>
        <%}%>
    <%}%>
    <% if (hasmore) {%>
    <li class="loading"><div class="spinner"><i></i></div>明细数据读取中...</li>
    <% } %>
    <%}else {%>
    <div class="nctouch-norecord order">
        <div class="norecord-ico"><i></i></div>
        <dl>
            <dt>您还没有相关的明细</dt>
            <dd>可以去看看哪些想要买的</dd>
        </dl>
        <a href="<%=WapSiteUrl%>" class="btn">随便逛逛</a>
    </div>
    <%}%>
</script>
<script type="text/javascript" src="../../js/zepto.min.js"></script>
<script type="text/javascript" src="../../js/template.js"></script>
<script type="text/javascript" src="../../js/config.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>
<script type="text/javascript" src="../../js/simple-plugin.js"></script>
<script type="text/javascript" src="../../js/tmpl/fenxiao_detail.js"></script>
</body>
</html>